|
|
|
|
|
|
|
OutputPrecision specifies how closely the selected font must match the height, width, escapement, character orientation, pitch, and face you specify. Table 4.3 lists output precision values. |
|
|
|
|
|
|
|
|
You can use OUT_DEVICE_PRECIS, OUT_RASTER_PRECIS, and OUT_TT_PRECIS to control how the font mapper selects a font when more than one font matches your specifications. For example, suppose you specify the font Helvetica and your system contains both a raster font and a TrueType font named Helvetica. If you set OutputPrecision to OUT_TT_PRECIS, the font mapper selects the TrueType font. |
|
|
|
|
|
|
|
|
If you specify OUT_TT_ONLY_PRECIS, the font mapper always selects a TrueType font, even if a device or raster font matches the font you specified. In that case, the TrueType font selected may not match your selections very closely. |
|
|
|
|
|
|
|
|
The clipping precision parameter determines how characters that are partially outside the clipping region are clipped. Table 4.4 lists possible values. |
|
|
|
|
|
|
|
|
When you use fonts with a nonzero escapement, you should add CLIP_LH_ANGLES to the ClipPrecision using the Or operator. For example, to have text clipped one character at a time, you would specify ClipPrecision as CLIP_LH_ANGLES Or CLIP_CHARACTER_PRECIS. |
|
|
|
|
|
|
|
|
Using CLIP_LH_ANGLES makes different kinds of fonts measure rotations in the same direction. If you do not use CLIP_LH_ANGLES, device fonts will measure rotation counterclockwise, but other fonts may measure rotation clockwise or counterclockwise. |
|
|
|
|
| Table 4.3 Font Output Precision Values | | CONSTANT | VALUE | | OUT_DEFAULT_PRECIS | 0 | | OUT_DEVICE_PRECIS | 5 | | OUT_OUTLINE_PRECIS | 8 | | OUT_RASTER_PRECIS | 6 | | OUT_STRING_PRECIS | 1 | | OUT_STROKE_PRECIS | 3 | | OUT_TT_ONLY_PRECIS | 7 | | OUT_TT_PRECIS | 4 |
|
|
|